package com.linlin.shortlink.project.service.impl;import com.linlin.shortlink.project.service.UrlTitleService;import org.jsoup.Jsoup;import org.jsoup.nodes.Document;import org.springframework.stereotype.Service;@Servicepublic class UrlTileServiceImpl implements UrlTitleService{    @Override    public String getTitleByUrl(String url) {        try {            Document doc = Jsoup.connect(url).get();            return doc.title();        } catch (Exception e) {            return "title not fond";        }    }}